async function run($input,$output,$modules = modules){
    let dingTalkApi = $modules.dingTalkApi;
    let token = await dingTalkApi.getAccessToken();
    let hasMore = true;
    let offset = 0;
    let size = 100;
    let list = [];
    let url = "https://oapi.dingtalk.com/user/simplelist?access_token="+token.access_token+"&department_id="+$input.department_id;
    while(hasMore){
        let res = await $modules.curl(url,{
            data:{
                offset,
                size
            }
        });
        data = new String(res.data);
        data = JSON.parse(data);
        hasMore = data.hasMore;
        offset += size;
        list = list.concat(data.userlist);
    }
    $output.userlist= JSON.stringify(list);
}